package com.kaifamiao.demo.d0822;

public class Demo04 {

    public static void main(String[] args) {
        int num = 1;

        // int char short byte Enum(枚举) String(JDK 1.7)
        switch (num){
            case 1 -> System.out.println(1);
            case 2 -> System.out.println(2);
        }


    }
}
